import dayjs from 'dayjs'
import utc from 'dayjs/plugin/utc'
dayjs.extend(utc)

export function timeFormat(time: string, format = 'YYYY-MM-DD HH:mm:ss') {
  return dayjs.utc(time).utcOffset(8).format(format)
}
export function priceFormat(price: any) {
  return '¥' + price
}
